package homework.printyourself.info.items;

import homework.printyourself.info.BaseObject;
import homework.valid.validators.ValidateChain;

import java.io.IOException;

public class NameItem extends BaseInformationItem {

    public NameItem(BaseObject obj) throws IOException {
        super(obj, null);
        itemName = "姓名";
        itemValue = (String)fi.input("请输入姓名: ", new ValidateChain());
    }

    public NameItem(BaseObject obj, String value) {
        super(obj, value);
        itemName = "姓名";
    }
}
